package cn.gengms.chat;

import java.io.*;

public class Result implements Serializable {

    /**
     * 封装返回结果
     */
    private Integer flag;
    private String message;//返回结果信息
    private Object data;//返回数据
    public Result(Integer flag, String message) {
        super();
        this.flag = flag;
        this.message = message;
    }

    public Result(Integer flag, String message, Object data) {
        super();
        this.flag = flag;
        this.message = message;
        this.data = data;
    }

    public Integer getFlag() {
        return flag;
    }
    public void setFlag(Integer flag) {
        this.flag = flag;
    }
    public String getMessage() {
        return message;
    }
    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "Result{" +
                "flag=" + flag +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }


}
